//
//  YXFNetDeviceTool.h
//  YXFMarket
//
//  Created by Leewon on 2020/9/16.
//  Copyright © 2020 信雅科技. All rights reserved.
//

#import <Foundation/Foundation.h>

#define KYXFNetDeviceTool [YXFNetDeviceTool netDeviceTool]

NS_ASSUME_NONNULL_BEGIN

@interface YXFNetDeviceTool : NSObject

+ (instancetype)netDeviceTool ;


#pragma mark - 开放获取设备秘钥接口
/**
 开放获取设备秘钥接口
 
 @param completionHandler 数据回调
 */
- (void)getDeviceKeyWithMerchantID : (NSString *)merchantID
             withCompletionHandler : (void(^)(NSDictionary *dataDic))completionHandler;

#pragma mark - 激活设备(秘钥+MAC地址)
/**
 激活设备(秘钥+MAC地址)
 
 @param completionHandler 数据回调
 */
- (void)activeDeviceWithCompletionHandler : (void(^)(NSDictionary *dataDic))completionHandler ;

#pragma mark - 新建设备接口
/**
 新建设备接口
 
 @param merchantID 应用下目录id(又称商户id)
 @param completionHandler 数据回调
 */
- (void)createDeviceInterfaceWithMerchantID : (NSString *)merchantID
                      withCompletionHandler : (void(^)(NSDictionary *dataDic))completionHandler ;

#pragma mark - 设备日志上传
/**
 设备日志上传
 
 @param completionHandler 数据回调
 */
- (void)uploadLogWithInfo : (NSString *)logInfo
    withCompletionHandler : (void(^)(NSDictionary *dataDic))completionHandler ;
@end

NS_ASSUME_NONNULL_END
